<ion-view view-title="{{title}}">
  <ion-content>
    <ion-refresher on-refresh="doRefresh()"
                   pulling-text="下拉刷新..."
                   refreshing-text="拼命加载中..."
                   refreshing-icon="ion-loading-b">

    </ion-refresher>
      <div class="list card" href="#" ng-repeat="mymission in mymissions">
        <div class="item">
          <h2>{{mymission.get('orderid')}}<a class="float-right" style="font-size: large; color: red">{{mymission.get('type')|orderTpe}}</a></h2>
        </div>
        <div class="item item-body">
          <p ng-if="mymission.get('type')==12">
            取件地址：{{mymission.get('shopId')|shop}}
          </p>
          <p ng-if="mymission.get('type')==11">
            退件地址：{{mymission.get('shopId')|shop}}
          </p>
          <p>
            客户地址：{{mymission.get('address').address}}
          </p>
          <p>
            客户信息：{{mymission.get('address').name}} <a>{{mymission.get('address').phone}}</a>
          </p>
          <p>
            商品明细：
          <div ng-repeat="goods in mymission.get('goods')">
            {{goods.pname}} {{goods.sname}} {{goods.size}}*{{goods.price}}元
          </div>
          </p>
          <p>
            备注：{{mymission.get('remark')}}
          </p>
          <p>
            原订单支付方式：{{mymission.get('payway')}}
          </p>
          <p ng-if="mymission.get('type')==11" style="font-size: large; color: red">
            退款明细：退给用户现金 ({{mymission.get('finalAmount')}}元)
          </p>
          <p>
            订单状态：{{mymission.get('status') |  orderState }}
          </p>
        </div>
      </div>
    <div ng-if="(mymissions.length == 0)" class="card">
      <div class="item item-text-wrap">
        啥都没有~
      </div>
    </div>
    <div style="text-align: center" ng-if="(mymissions.length != 0)">
      <a style="color: green;text-align: center" ng-click="loadMoreOrder()" >{{loadMore}}</a>
    </div>
  </ion-content>
</ion-view>
